﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Templates/Template.Master" Inherits="System.Web.Mvc.ViewPage<TaxiCaosWeb.Models.Cliente>" %>

<asp:Content ID="Content3" ContentPlaceHolderID="title" runat="server">
	Registrar Cliente
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="menuContent" runat="server">
<%
    string[] menuArray = { "0", "0", "0", "0", "0", "1", "0", "0" };
    Session["menuArray"] = menuArray;
%>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="body" runat="server">
 
    <div class="nosotros">
        <h2> Registro de Clientes </h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
         <div class="c_left">
            <div class="editor-label" style="margin-top:15px;">
             <label>Usuario</label>
            </div>
            <div class="editor-field" style="margin-top:15px;">
                <input type="text" />
            </div>
            <div class="editor-label" style="margin-top:15px;">
             <label>Password</label>
            </div>
            <div class="editor-field" style="margin-top:15px;">
                <input type="password" />
            </div>
            <div class="editor-label" style="margin-top:15px;">
            <label>Nombres</label> 
            </div>           
             <div class="editor-field" style="margin-top:15px;">
                <%: Html.TextBoxFor(model => model.nombres)%>
                <%: Html.ValidationMessageFor(model => model.nombres)%>
            </div>
            <div class="editor-label" style="margin-top:15px;">
            <label>Apellido Paterno</label>
            </div>
            <div class="editor-field" >
                <%: Html.TextBoxFor(model => model.apellidoPaterno)%>
                <%: Html.ValidationMessageFor(model => model.apellidoPaterno)%>
            </div>
            <div class="editor-label" style="margin-top:15px;">
           <label>Apellido Materno</label>         
            </div>
             <div class="editor-field" style="margin-top:15px;">
                <%: Html.TextBoxFor(model => model.apellidoMaterno)%>
                <%: Html.ValidationMessageFor(model => model.apellidoMaterno)%>
            </div>
            
            <div class="editor-label" style="margin-top:15px;">
             <label>Tipo Documento</label> 
            </div>
             <div class="editor-field" style="margin-top:15px;">
                <%: Html.TextBoxFor(model => model.tipoDocIdentidad)%>
                <%: Html.ValidationMessageFor(model => model.tipoDocIdentidad)%>
            </div>
            <div class="editor-label" style="margin-top:15px;">
             <label>Nro Documento</label>
            </div>
            <div class="editor-field" style="margin-top:15px;">
                <%: Html.TextBoxFor(model => model.nroDocIdentidad)%>
                <%: Html.ValidationMessageFor(model => model.nroDocIdentidad)%>
            </div>
            <div class="editor-label" style="margin-top:15px;">
             <label>Correo Electronico</label>
            </div>
            <div class="editor-field" style="margin-top:15px;">
                <%: Html.TextBoxFor(model => model.emailAdresss)%>
                <%: Html.ValidationMessageFor(model => model.emailAdresss)%>
            </div>
         </div>
          <div class="c_right">
            <div class="editor-label" style="margin-top:15px;">
             <label>Dirección</label>
            </div>
            <div class="editor-field" style="margin-top:15px;">
                <%: Html.TextBoxFor(model => model.direccion)%>
                <%: Html.ValidationMessageFor(model => model.direccion)%>
            </div>
            <div class="editor-label" style="margin-top:15px;">
             <label>Telefono</label>
            </div>
             <div class="editor-field" style="margin-top:15px;">
                <%: Html.TextBoxFor(model => model.telefono) %>
                <%: Html.ValidationMessageFor(model => model.telefono) %>
            </div>
            <div class="editor-label" style="margin-top:15px;">
            <label>Fecha Nacimiento</label>
            </div>
             <div class="editor-field" style="margin-top:15px;">
                <%: Html.TextBoxFor(model => model.fechaNacimiento)%>
                <%: Html.ValidationMessageFor(model => model.fechaNacimiento)%>
            </div>
            
          </div>
          
       <% } %>

      <div>
             <%: Html.ActionLink("Confirmar Registro", "ConfirmaCliente", "Cliente", null, new { onclick = "alert('Se realizó el registro con éxito')", href = "#login-box", @class = "login-window" })%>
      </div>
      <% Html.RenderPartial("../Seguridad/LoginModal"); %>
    </div>

</asp:Content>


